﻿@model List<DataSharing.Models.Product>
@{
    ViewBag.Title = "List";
}

<h2>List of products</h2>

@foreach (var p in Model)
{
    <div class="col-md-3">
        <ul class="prod">
            <li>@p.Id</li>
            <li>@p.Name</li>
            <li>@p.UnitPrice</li>
            <li>@p.Quantity</li>
            <li>
                <a href="/Product/Detail/@p.Id">
                    <img src="/images/products/@p.Image" />
                </a>
            </li>
        </ul>
    </div>
}